import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 聊天模型CRUD
export const chatModelCRUD = CRUD('/ai/chat-model');

// 获取聊天模型精简列表
export function getChatModelSimpleList(params: Record<string, any>) {
  return request.get({
    url: '/ai/chat-model/simple-list',
    params,
  });
}

// 启用配置
export function enableConfig(data: Record<string, any>) {
  return request.put({
    url: '/ai/chat-model/enable-model',
    data,
  });
}
